var express = require('express');
var router = express.Router();

const {
  shop_typeModel,
  payMoneyModel,
  loginModel,
  goodsModel,
  visitModel,
  videoModel,
  video_typeModel,
  video_employeeModel,
  videobackModel,
  chuangzuojibieModel,
  AppwailianModel,
  tixianModel,
  huiyuandingdanModel,
  xiaoshoueModel,
  PutongyonghuModel,
  chuanbzuozheguanliModel,
  PindaoModel,
  GuanggaoModel,
  GiftModel,
  ChangshipinfenleiModel,
  jubaozhongxinModel,
  tongzhigonggaoModel,
  jeuseModel,
  rexiaocihengModel,
} = require('../../../model/model');
/* GET home page. */

router.get('/', async (req, res) => {
  console.log('====================================');
  console.log();
  console.log('====================================');
  res.send({
    code: 200,
  });
});

// router.get('/adda', async (req, res) => {
//   await shop_typeModel.create(req.query);
//   res.send({
//     code: 200,
//   })
// })

// router.get('/adda', async (req, res) => {
//   await loginModel.create(req.query);
//   res.send({
//     code: 200,
//   });
// });

// router.get('/adda', async (req, res) => {
//   await payMoneyModel.create(req.query);
//   res.send({
//     code: 200,
//   });
// });

router.get('/adda', async (req, res) => {
  console.log('====================================');
  console.log(req.query);
  console.log('====================================');
  await rexiaocihengModel.create(req.query);
  res.send({
    code: 200,
  });
});
module.exports = router;
